#include <Windows.h>

extern LONG gRemoteWidth;
extern LONG gRemoteHeight;
extern LONG gRemoteSize;
extern LONG gPosX;
extern LONG gPosY;

void init_mutex();
void init_capture();
void capture_screen(BYTE *pImage);
int compress_buffer(BYTE *pImage, BYTE *pCompressedImage);

void set_remote_pos(LONG x, LONG y);
void set_remote_size(LONG width, LONG height);
void clean_remote_data(BYTE *pImage, BYTE *pCompressedImage);
void reset_remote_size(BYTE **ppImage, BYTE **ppCompressedImage);
BOOL has_remote_reset();
